# -*- coding: utf-8 -*-
# @Time    : 2022/11/1 16:53
# @Author  : yangyuexiong
# @Email   : yang6333yyx@126.com
# @File    : __init__.py.py
# @Software: PyCharm

from common.libs.func import f, get_pid


def qq_main(path=None, proc_id=None):
    """qq"""

    app = f(path, proc_id)

    win_main_dialog = app.window(class_name="TXGuiFoundation")
    win_main_dialog.wait('ready', timeout=10)
    print(win_main_dialog.is_dialog)
    print(win_main_dialog.print_control_identifiers())


if __name__ == '__main__':
    qq_path = 'C:\soft\other\qq\Bin\QQ.exe'
    qq_pid = get_pid(name='QQ.exe')
    qq_main(path=qq_path)
